//----------------------------------------------------------------------------
// Includes
//----------------------------------------------------------------------------
Ti.include('lib/include.js');
Ti.include('lib/constants.js');
Ti.include('lib/strings.js');
Ti.include('lib/db.js');



//----------------------------------------------------------------------------
// Initialiseren
//----------------------------------------------------------------------------
Ti.App.Properties.setString('hhversion_preference', getAppVersion());

setupApothekenDB();
populateApothekenDB();
setupHHReceptenDB();


//----------------------------------------------------------------------------
// Platform specifieke code
//----------------------------------------------------------------------------
if (isIphone()) {
   Ti.Analytics.featureEvent(APP_EVENTS.EVENT_APP_IPHONE_LAUNCHED);
   Ti.include('app_ios.js');
}
else if (isIpad()) {
   Ti.Analytics.featureEvent(APP_EVENTS.EVENT_APP_IPAD_LAUNCHED);
   Ti.include('app_ios.js');
}
else if (isAndroid()) {
   Ti.include('app_android.js');
}
else {
   // momenteel nog geen ondersteuning voor BB, Tizen etc.
   log("Platform " +platform +" wordt niet ondersteund!");
}
